import { $get } from '@js/request'

export interface OptionSchame {
  title: string
  value: string
}

// 获取案由树
export async function getPersonListReuqest (): Promise<OptionSchame[]> {
  const res = await $get('/api/common/employee')
  return res.data.list.map((li: { realname: string, id: string }) => {
    return {
      title: li.realname,
      value: li.id
    }
  })
}
